package com.zjm.behavioral.observer.demo01;

/**
 * 普通方案
 */
public class Client {
    public static void main(String[] args) {
        // 创建接入方
        CurrentConditions currentConditions = new CurrentConditions();

        WeatherData weatherData = new WeatherData(currentConditions);
        weatherData.setData(20, 200, 30);

        System.out.println("=".repeat(20) + "天气变化");
        weatherData.setData(40, 120, 60);
    }
}
